﻿package com.msjt.service.impl;

import javax.annotation.Resource;

import com.msjt.dao.CompanyDAO;
import com.msjt.entity.Company;
import com.msjt.service.ICompanyService;

public class CompanyService implements ICompanyService {
	@Resource	
	private CompanyDAO companyDao;

	public CompanyDAO getCompanyDao() {
		return companyDao;
	}

	public void setCompanyDao(CompanyDAO companyDao) {
		this.companyDao = companyDao;
	}
	
	//得到公司信息
	/* (non-Javadoc)
	 * @see com.msjt.service.impl.ICompanyService#getCompanyInfo()
	 */
	public Company getCompanyInfo(){
		return this.companyDao.getCompanyInfo();
	}
	//修改公司信息
	/* (non-Javadoc)
	 * @see com.msjt.service.impl.ICompanyService#updateCompany(com.msjt.entity.Company)
	 */
	public boolean updateCompany(Company company){
		return this.companyDao.updateCompany(company);
	}
}
